﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000DE9 RID: 3561
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RefreshTriggerByClientScNotify : IMessage<RefreshTriggerByClientScNotify>, IMessage, IEquatable<RefreshTriggerByClientScNotify>, IDeepCloneable<RefreshTriggerByClientScNotify>, IBufferMessage
	{
		// Token: 0x17002D2A RID: 11562
		// (get) Token: 0x06009FB9 RID: 40889 RVA: 0x001AADA3 File Offset: 0x001A8FA3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RefreshTriggerByClientScNotify> Parser
		{
			get
			{
				return RefreshTriggerByClientScNotify._parser;
			}
		}

		// Token: 0x17002D2B RID: 11563
		// (get) Token: 0x06009FBA RID: 40890 RVA: 0x001AADAA File Offset: 0x001A8FAA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RefreshTriggerByClientScNotifyReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002D2C RID: 11564
		// (get) Token: 0x06009FBB RID: 40891 RVA: 0x001AADBC File Offset: 0x001A8FBC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RefreshTriggerByClientScNotify.Descriptor;
			}
		}

		// Token: 0x06009FBC RID: 40892 RVA: 0x001AADC3 File Offset: 0x001A8FC3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RefreshTriggerByClientScNotify()
		{
		}

		// Token: 0x06009FBD RID: 40893 RVA: 0x001AADE4 File Offset: 0x001A8FE4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RefreshTriggerByClientScNotify(RefreshTriggerByClientScNotify other) : this()
		{
			this.triggerTargetIdList_ = other.triggerTargetIdList_.Clone();
			this.triggerEntityId_ = other.triggerEntityId_;
			this.triggerName_ = other.triggerName_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06009FBE RID: 40894 RVA: 0x001AAE31 File Offset: 0x001A9031
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RefreshTriggerByClientScNotify Clone()
		{
			return new RefreshTriggerByClientScNotify(this);
		}

		// Token: 0x17002D2D RID: 11565
		// (get) Token: 0x06009FBF RID: 40895 RVA: 0x001AAE39 File Offset: 0x001A9039
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> TriggerTargetIdList
		{
			get
			{
				return this.triggerTargetIdList_;
			}
		}

		// Token: 0x17002D2E RID: 11566
		// (get) Token: 0x06009FC0 RID: 40896 RVA: 0x001AAE41 File Offset: 0x001A9041
		// (set) Token: 0x06009FC1 RID: 40897 RVA: 0x001AAE49 File Offset: 0x001A9049
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint TriggerEntityId
		{
			get
			{
				return this.triggerEntityId_;
			}
			set
			{
				this.triggerEntityId_ = value;
			}
		}

		// Token: 0x17002D2F RID: 11567
		// (get) Token: 0x06009FC2 RID: 40898 RVA: 0x001AAE52 File Offset: 0x001A9052
		// (set) Token: 0x06009FC3 RID: 40899 RVA: 0x001AAE5A File Offset: 0x001A905A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public string TriggerName
		{
			get
			{
				return this.triggerName_;
			}
			set
			{
				this.triggerName_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
			}
		}

		// Token: 0x06009FC4 RID: 40900 RVA: 0x001AAE6D File Offset: 0x001A906D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RefreshTriggerByClientScNotify);
		}

		// Token: 0x06009FC5 RID: 40901 RVA: 0x001AAE7C File Offset: 0x001A907C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RefreshTriggerByClientScNotify other)
		{
			return other != null && (other == this || (this.triggerTargetIdList_.Equals(other.triggerTargetIdList_) && this.TriggerEntityId == other.TriggerEntityId && !(this.TriggerName != other.TriggerName) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06009FC6 RID: 40902 RVA: 0x001AAEE0 File Offset: 0x001A90E0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.triggerTargetIdList_.GetHashCode();
			if (this.TriggerEntityId != 0U)
			{
				num ^= this.TriggerEntityId.GetHashCode();
			}
			if (this.TriggerName.Length != 0)
			{
				num ^= this.TriggerName.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06009FC7 RID: 40903 RVA: 0x001AAF48 File Offset: 0x001A9148
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06009FC8 RID: 40904 RVA: 0x001AAF50 File Offset: 0x001A9150
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06009FC9 RID: 40905 RVA: 0x001AAF5C File Offset: 0x001A915C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.TriggerEntityId != 0U)
			{
				output.WriteRawTag(24);
				output.WriteUInt32(this.TriggerEntityId);
			}
			if (this.TriggerName.Length != 0)
			{
				output.WriteRawTag(50);
				output.WriteString(this.TriggerName);
			}
			this.triggerTargetIdList_.WriteTo(ref output, RefreshTriggerByClientScNotify._repeated_triggerTargetIdList_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06009FCA RID: 40906 RVA: 0x001AAFCC File Offset: 0x001A91CC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.triggerTargetIdList_.CalculateSize(RefreshTriggerByClientScNotify._repeated_triggerTargetIdList_codec);
			if (this.TriggerEntityId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.TriggerEntityId);
			}
			if (this.TriggerName.Length != 0)
			{
				num += 1 + CodedOutputStream.ComputeStringSize(this.TriggerName);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06009FCB RID: 40907 RVA: 0x001AB03C File Offset: 0x001A923C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RefreshTriggerByClientScNotify other)
		{
			if (other == null)
			{
				return;
			}
			this.triggerTargetIdList_.Add(other.triggerTargetIdList_);
			if (other.TriggerEntityId != 0U)
			{
				this.TriggerEntityId = other.TriggerEntityId;
			}
			if (other.TriggerName.Length != 0)
			{
				this.TriggerName = other.TriggerName;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06009FCC RID: 40908 RVA: 0x001AB0A2 File Offset: 0x001A92A2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06009FCD RID: 40909 RVA: 0x001AB0AC File Offset: 0x001A92AC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 50U)
				{
					if (num == 24U)
					{
						this.TriggerEntityId = input.ReadUInt32();
						continue;
					}
					if (num == 50U)
					{
						this.TriggerName = input.ReadString();
						continue;
					}
				}
				else if (num == 120U || num == 122U)
				{
					this.triggerTargetIdList_.AddEntriesFrom(ref input, RefreshTriggerByClientScNotify._repeated_triggerTargetIdList_codec);
					continue;
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04003D91 RID: 15761
		private static readonly MessageParser<RefreshTriggerByClientScNotify> _parser = new MessageParser<RefreshTriggerByClientScNotify>(() => new RefreshTriggerByClientScNotify());

		// Token: 0x04003D92 RID: 15762
		private UnknownFieldSet _unknownFields;

		// Token: 0x04003D93 RID: 15763
		public const int TriggerTargetIdListFieldNumber = 15;

		// Token: 0x04003D94 RID: 15764
		private static readonly FieldCodec<uint> _repeated_triggerTargetIdList_codec = FieldCodec.ForUInt32(122U);

		// Token: 0x04003D95 RID: 15765
		private readonly RepeatedField<uint> triggerTargetIdList_ = new RepeatedField<uint>();

		// Token: 0x04003D96 RID: 15766
		public const int TriggerEntityIdFieldNumber = 3;

		// Token: 0x04003D97 RID: 15767
		private uint triggerEntityId_;

		// Token: 0x04003D98 RID: 15768
		public const int TriggerNameFieldNumber = 6;

		// Token: 0x04003D99 RID: 15769
		private string triggerName_ = "";
	}
}
